package com.yzc.controller;

import com.yzc.model.query.prediction.PredictionReq;
import com.yzc.result.Result;
import com.yzc.service.PredictionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/predict")
public class PredictionController {

    @Autowired
    private PredictionService predictionService;


    @PostMapping("/test")
    public Result getPrediction(@RequestBody PredictionReq date) {
        return Result.success(predictionService.predictVisitorCount(date));
    }
}